module.exports = options => {
    return async function adminauth(ctx, next) {
        // await next()
        ctx.logger.info(ctx.session.openId);
        // console.log("ctx.session.openId== ",ctx.session.openId)
        if (ctx.session.openId) {
            await next()
        } else {
            ctx.body = { data: '没有登录' }
        }

    }
}